package cn.historia.infrastructure.persistent.dao;

import cn.historia.infrastructure.persistent.po.StrategyAward;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @package: cn.historia.infrastructure.dao
 * @className: IStrategyAwardDao
 * @author: 云溪
 * @description: 抽奖策略奖品明细配置 - 概率、规则 DAO
 * @date: 2025/7/17 16:21
 * @version: 1.0
 */
@Mapper
public interface IStrategyAwardDao {

    List<StrategyAward> queryStrategyAwardList();

    List<StrategyAward> queryStrategyAwardListByStrategyId(Long strategyId);

    String queryStrategyAwardRuleModels(StrategyAward strategyAward);

    void updateStrategyAwardStock(StrategyAward strategyAward);

    void clearStrategyAwardStock(StrategyAward strategyAward);

    StrategyAward queryStrategyAward(StrategyAward strategyAwardReq);
}
